{"version":3,"sources":["fixfontsize.bundle.js"],"names":["BX","FixFontSize","params","widthNode","computedStyles","width","this","node","prevWindowSize","prevWrapperSize","mainWrapper","textWrapper","objList","minFontSizeList","minFontSize","onresize","window","innerWidth","document","documentElement","clientWidth","bind","throttle","onResize","onAdaptiveResize","scaleBy","getComputedStyle","parseInt","createTestNodes","decrease","prototype","create","style","display","whiteSpace","height","overflow","children","insertTestNodes","body","appendChild","removeTestNodes","removeChild","fontSize","i","length","textWrapperSetStyle","textWrapperInsertText","offsetWidth","smallestValue","Math","min","push","setMinFont","increase","maxFontSize","textContent","innerText","fontFamily","fontStyle","fontWeight","lineHeight","init"],"mappings":"CAAA,WACCA,GAAGC,YAAc,SAASC,GAEzB,IAAIC,EAAWC,EAAgBC,EAE/BC,KAAKC,KAAO,KACZD,KAAKE,eAAiB,EACtBF,KAAKG,gBAAkB,EACvBH,KAAKI,YAAc,KACnBJ,KAAKK,YAAc,KACnBL,KAAKM,QAAUV,EAAOU,QACtBN,KAAKO,mBACLP,KAAKQ,YAAc,EAEnB,GAAIZ,EAAOa,SACX,CACCT,KAAKE,eAAiBQ,OAAOC,YAAcC,SAASC,gBAAgBC,YACpEpB,GAAGqB,KAAKL,OAAQ,SAAUhB,GAAGsB,SAAShB,KAAKiB,SAAU,IAAKjB,OAG3D,GAAIJ,EAAOsB,iBACX,CACCrB,EAAYG,KAAKM,QAAQ,GAAGa,SAAWnB,KAAKM,QAAQ,GAAGL,KACvDH,EAAiBsB,iBAAiBvB,GAClCG,KAAKG,gBAAkBkB,SAASvB,EAAe,UAAYuB,SAASvB,EAAe,gBAAkBuB,SAASvB,EAAe,iBAC7HJ,GAAGqB,KAAKL,OAAQ,SAAUhB,GAAGsB,SAAShB,KAAKkB,iBAAkB,IAAKlB,OAGnEA,KAAKsB,kBACLtB,KAAKuB,YAGN7B,GAAGC,YAAY6B,WAEbF,gBAAiB,WAEhBtB,KAAKK,YAAcX,GAAG+B,OAAO,OAC5BC,OACCC,QAAU,eACVC,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